﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Tron.DataStructures
{
    class Actions
    {
        Vector2 moveDirection;
        public Vector2 MoveDirection
        {
            get
            {
                return moveDirection;
            }
            set
            {
                if (Constants.PossibleMoveDirections.Contains(value))
                {
                    moveDirection = value;
                }
                else
                {
                    throw new Exception("Invalid move direction.  Value must be an up, down, left, or right unit vector.");
                }
            }
        }

        public Actions(Vector2 startingDirection)
        {
            this.MoveDirection = startingDirection;
        }
    }
}
